home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / pascal / tpfast30.zip / TPFAST.TXT < prev   
Text File  |  1990-09-26  |  63KB  |  1,798 lines

  1.                                 TpFast.Txt
  2.                                ============
  3.  
  4.                 CopyRight (c) 1989,1990    Steven Lutrov
  5.  
  6.  
  7.  
  8.           The following text is organised as follows :=  The name  of
  9.           the function or procedure is on the far left and  the  name
  10.           of the assembler source file it  resides in  is  on the far
  11.           right.  A brief description is  then added  followed by the
  12.           decleration syntax and then a description of the  variables
  13.           passed as parameters.
  14.  
  15.  
  16.  
  17. {------------------------------------------------------------------------------}
  18. AltKeyDown                                                           FastKbd.Asm
  19.  
  20.  
  21. Description  :    Report if <Alt> Key is Pressed
  22.  
  23. Declerations :    Function Altkeydown: Boolean;
  24.  
  25.  
  26. Parameters   :    None
  27.  
  28. {------------------------------------------------------------------------------}
  29. BackGround                                                           FastScr.Asm
  30.  
  31.  
  32. Description  :    Set up the Background Colour Attribute.
  33.  
  34. Declerations :    Procedure Background(Code: Char);
  35.  
  36.  
  37. Parameters   :    Code          Character Code from Table in Remarks.
  38.  
  39.  
  40. Remarks      :    k     Black           K       Light  Black (Grey)
  41.                   b     Blue            B       Light  Blue
  42.                   g     Green           G       Light  Green
  43.                   c     Cyan            C       Light  Cyan
  44.                   r     Red             R       Light  Red
  45.                   m     Magenta         M       Light  Magenta
  46.                   y     Yellow          Y       Bright Yellow
  47.                   w     White           W       Bright White
  48.  
  49.  
  50. Also Note That Monochrome attributes are possible  e.g.
  51.  
  52.  
  53.      Attribute                       ForeGround      BackGround
  54.      =========                       ==========      ==========
  55.  
  56.      Normal                              w               k
  57.      Intense                             W               k
  58.      Underlined                          b               k
  59.      Underlined & Intense                B               k
  60.      Reverse                             k               w
  61.      Blinking                            w               K
  62.      Blinking & Intense                  W               K
  63.      Blinking & Underlined               b               K
  64.      Blinking & Intense & Inderlined     B               K
  65.      Blinking & Reverse                  k               W
  66.        
  67.  
  68. See Also ForeGround
  69.  
  70. {------------------------------------------------------------------------------}
  71. Blinkoff                                                             FastScr.Asm
  72.  
  73.  
  74. Description  :    Set Text Attribute To Not Blink.
  75.  
  76. Declerations :    Procedure BlikOff;
  77.  
  78.  
  79. Parameters   :    None
  80.  
  81. {------------------------------------------------------------------------------}
  82. Blinkon                                                              FastScr.Asm
  83.  
  84.  
  85. Description  :    Set Text Attribute To Blink;
  86.  
  87. Declerations :    Procedure BlinkOn;
  88.  
  89.  
  90.  
  91. Parameters   :    None
  92.  
  93. {------------------------------------------------------------------------------}
  94. Bytetohex                                                            FastBit.Asm
  95.  
  96.  
  97. Description  :    Convert a Byte Variable To Hex.
  98.  
  99. Declerations :    Function ByteToHex (Work_ : Byte) :Stype;
  100.  
  101.  
  102. Parameters   :    Work_         The Byte that is converted
  103.  
  104.  
  105. {------------------------------------------------------------------------------}
  106. CapsLockDown                                                         FastKbd.Asm
  107.  
  108.  
  109. Description  :    Report if <Caps Lock> Key is Pressed
  110.  
  111. Declerations :    Function CapsLockdown: Boolean;
  112.  
  113.  
  114. Parameters   :    None
  115.  
  116.  
  117. {------------------------------------------------------------------------------}
  118. CapsLockOn                                                           FastKbd.Asm
  119.  
  120.  
  121. Description  :    Report if <Caps Lock> Key is Currently On
  122.  
  123. Declerations :    Function CapsLockdOn: Boolean;
  124.  
  125.  
  126. Parameters   :    None
  127.  
  128.  
  129. {------------------------------------------------------------------------------}
  130. ClearBuffer                                                          FastKbd.Asm
  131.  
  132.  
  133. Description  :    Clears The Keyboard Buffer.
  134.  
  135. Declerations :    Procedure Clearbuffer;
  136.  
  137.  
  138. Parameters   :    None
  139.  
  140.  
  141. {------------------------------------------------------------------------------}
  142. ClearPage                                                            FastGrp.Asm
  143.  
  144.  
  145. Description  :    Clears a previously Saved Page from memory.
  146.  
  147. Declerations :    Procedure Clearpage(Pagenumber,Colour: Byte);
  148.  
  149.  
  150. Parameters   :    PageNumber    The Page Number
  151.                   Colour        The Colour Attribute to which the page is
  152.                                 cleared.
  153.  
  154. Notes        :    See GetPage.
  155.  
  156. {------------------------------------------------------------------------------}
  157. ClearCapslock                                                        FastKbd.Asm
  158.  
  159.  
  160. Description  :    Turn Off The <Caps Lock> Key.
  161.  
  162. Declerations :    Procedure Clearcapslock;
  163.  
  164.  
  165. Parameters   :    None
  166.  
  167. {------------------------------------------------------------------------------}
  168. ClearIns                                                             FastKbd.Asm
  169.  
  170.  
  171. Description  :    Turn Off The <Ins> Key.
  172.  
  173. Declerations :    Procedure Clearins;
  174.  
  175.  
  176. Parameters   :    None
  177.  
  178. {------------------------------------------------------------------------------}
  179. ClearNumLock                                                         FastKbd.Asm
  180.  
  181.  
  182. Description  :    Turn Off The <Num Lock> Key.
  183.  
  184. Declerations :    Procedure ClearNumLock;
  185.  
  186.  
  187. Parameters   :    None
  188.  
  189. {------------------------------------------------------------------------------}
  190. ClearScrollLock                                                      FastKbd.Asm
  191.  
  192.  
  193. Description  :    Turn Off The <Scroll Lock> Key.
  194.  
  195. Declerations :    Procedure ClearScrollLock;
  196.  
  197.  
  198. Parameters   :    None
  199.  
  200. {------------------------------------------------------------------------------}
  201. CloseFile                                                           FastFile.Asm
  202.  
  203. Description  :    Closes a File
  204.  
  205. Declerations :    Function CloseFile(Handle:Integer):Boolean;
  206.  
  207.  
  208. Parameters   :    Handle        The Dos Handle Returned when the file was
  209.                                 created. (See CreateFile)
  210.  
  211.  
  212. Remarks      :    CloseFile Returns a Boolean Value as follows
  213.                                 True  : File Closed Ok
  214.                                 False : File Didn't Close Ok
  215.  
  216.  
  217. {------------------------------------------------------------------------------}
  218. ChangeChar                                                           FastStr.Asm
  219.  
  220.  
  221. Description  :    Changes every instance of a character in a string.
  222.  
  223. Declerations :    Procedure ChangeChar(Var Strx: Stype; Search,Replace: Char);
  224.  
  225.  
  226.  
  227. Parameters   :    Strx          The String to be manipulated
  228.                   Search        Character that is searched
  229.                   Replace       Character that replaces Search
  230.  
  231. ErrReturn    :                  0 - Ok
  232.                                 1 - Character not Found
  233.  
  234. Remarks      :    None
  235.  
  236. {------------------------------------------------------------------------------}
  237. Colourx                                                              FastScr.Asm
  238.  
  239.  
  240.  
  241. Description  :    Change The Attribute of a Column of Text.
  242.  
  243. Declerations :    Procedure Colourx(X_Pos,Y_Pos,Y_Num,Colour: Byte);
  244.  
  245.  
  246.  
  247. Parameters   :    X_Pos         Column Position Coordinate
  248.                   Y_Pos         Row Position Coordinate
  249.                   Y_Num         Number of Columns Deep affecting Attribute
  250.                   Colour        The Attribute (0-255)
  251.  
  252.  
  253. Remarks      :    The Text inside the area is left un altered.
  254.  
  255.  
  256. {------------------------------------------------------------------------------}
  257. Compare                                                              FastStr.Asm
  258.  
  259.  
  260. Description  :    Compares two Strings
  261.  
  262. Declerations :    Function Compare(Strx1,Strx2: Stype): Boolean;
  263.  
  264.  
  265. Pa